package xyz.xtt.asset.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.xtt.asset.validator.EnumValue;

/**
 * @author huqibo
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "创建资产对象", description = "创建资产对象")
public class AssertOriginRequest {
	@NotEmpty(message = "资产类型编码不能为空")
	@ApiModelProperty(value = "资产类型编码")
	private String typeCode;
	@ApiModelProperty(value = "资产编码")
	private String assetsCode;
	@ApiModelProperty(value = "合约类型 721/1155")
	@EnumValue(stringValues = { "721", "1155" }, message = "合约类型取值不正确")
	private String tokenType;
	@ApiModelProperty(value = "资产源数据")
	private String metaData;
	@NotEmpty(message = "附件文件不能为空")
	@ApiModelProperty(value = "附件文件")
	private String fileUrl;
	@ApiModelProperty(value = "发行数量")
	private Integer nums;
	@ApiModelProperty(value = "订单")
	private String orderNo;
	@ApiModelProperty(value = "拥有人")
	@NotEmpty(message = "ownId不能为空")
	private String ownId;
}
